home *** CD-ROM | disk | FTP | other *** search
- // wltestc.h : main header file for the WLTESTC application
- //
-
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
-
- #include "resource.h" // main symbols
-
- // Numeric IDs for each browser API the user may select; order must match string array
- #define WLAPI_GetWindowInfo 0
- #define WLAPI_ListWindows 1
- #define WLAPI_ActivateWindow 2
- #define WLAPI_CloseWindow 3
- #define WLAPI_SetWindowPos 4
- #define WLAPI_ShowWindow 5
- #define WLAPI_ShowFile 6
- #define WLAPI_OpenURL 7
- #define WLAPI_SaveURL 8
- #define WLAPI_PostFormData 9
- #define WLAPI_SaveFormData 10
- #define WLAPI_RegisterProtocol 11
- #define WLAPI_UnregisterProtocol 12
- #define WLAPI_RegisterURLEcho 13
- #define WLAPI_UnregisterURLEcho 14
- #define WLAPI_RegisterViewer 15
- #define WLAPI_UnregisterViewer 16
- #define WLAPI_RegisterWindowChange 17
- #define WLAPI_UnregisterWindowChange 18
- #define WLAPI_ParseAnchor 19
- #define WLAPI_GetVersion 20
- #define WLAPI_QueryURLFile 21
- #define WLAPI_SetNotifyMethod 22
- #define WLAPI_BrowserCount 23
-
- // Numeric IDs for toolbar APIs; order must match string array
- #define WLAPI_IsToolbarActive 0
- #define WLAPI_SetActiveToolbar 1
- #define WLAPI_AddToolbarButton 2
- #define WLAPI_RemoveToolbarButton 3
- #define WLAPI_IsToolbarButtonVisible 4
- #define WLAPI_ShowToolbarButton 5
- #define WLAPI_EnableToolbarButton 6
- #define WLAPI_IsToolbarButtonEnabled 7
- #define WLAPI_GetToolbarText 8
- #define WLAPI_SetToolbarText 9
- #define WLAPI_GetToolbarFont 10
- #define WLAPI_SetToolbarFont 11
- #define WLAPI_GetToolbarBkgnd 12
- #define WLAPI_SetToolbarBkgnd 13
- #define WLAPI_GetToolbarTextColor 14
- #define WLAPI_SetToolbarTextColor 15
- #define WLAPI_ToolbarCount 16
-
- // Numeric IDs for HTML parsing APIs; order must match string array
- #define WLAPI_HtmlEnumParseTree 0
- #define WLAPI_HtmlGetChild 1
- #define WLAPI_HtmlGetParent 2
- #define WLAPI_HtmlGetSibling 3
- #define WLAPI_HtmlGetElementType 4
- #define WLAPI_HtmlGetElementText 5
- #define WLAPI_HtmlGetTextAttr 6
- #define WLAPI_HtmlGetTagName 7
- #define WLAPI_HtmlGetTagType 8
- #define WLAPI_HtmlGetTagAttr 9
- #define WLAPI_HtmlExtractTagAttr 10
- #define WLAPI_HtmlFindText 11
- #define WLAPI_HtmlFindSpecial 12
- #define WLAPI_HtmlFindComment 13
- #define WLAPI_HtmlFindTagType 14
- #define WLAPI_HtmlFindTagName 15
- #define WLAPI_HtmlFindTagAttr 16
- #define WLAPI_HtmlEnumFindText 17
- #define WLAPI_HtmlEnumFindSpecial 18
- #define WLAPI_HtmlEnumFindComment 19
- #define WLAPI_HtmlEnumFindTagType 20
- #define WLAPI_HtmlEnumFindTagName 21
- #define WLAPI_HtmlEnumFindTagAttr 22
- #define WLAPI_HtmlCount 23
-
- // Numeric IDs for utility APIs; order must match string array
- #define WLAPI_AppendFormData 0
- #define WLAPI_GetFormDataLength 1
- #define WLAPI_ParseAbsoluteURL 2
- #define WLAPI_UtilCount 3
-
- #define MAINWNDSTYLE (CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW)
-
- #define WM_APP_SHOWMAINDLG (WM_USER + 100)
-
- /////////////////////////////////////////////////////////////////////////////
- // CWLTestApp: See wltestc.cpp for the implementation of this class
- //
-
- class CWLTestApp : public CWinApp
- {
- public:
- CWLTestApp();
-
- virtual BOOL InitInstance();
- virtual int ExitInstance();
-
- //{{AFX_MSG(CWLTestApp)
- afx_msg void OnAppAbout();
- //}}AFX_MSG
-
- CString m_strMainWndClass;
-
- static const char *m_pszBrowserAPIs[WLAPI_BrowserCount + 1];
- static const char *m_pszToolbarAPIs[WLAPI_ToolbarCount + 1];
- static const char *m_pszHtmlAPIs[WLAPI_HtmlCount + 1];
- static const char *m_pszUtilAPIs[WLAPI_UtilCount + 1];
-
- DECLARE_MESSAGE_MAP()
- };
-
- class CWLTestWnd : public CWnd
- {
- public:
- CWLTestWnd();
- virtual void PostNcDestroy();
-
- //{{AFX_MSG(CWLTestWnd)
- afx_msg LONG OnShowMainDlg(UINT wParam,LONG lParam);
- //}}AFX_MSG
-
- DECLARE_MESSAGE_MAP()
- };
-